Page Size



Memory size and CPU speed grows, but TLB can not grow at the same rate. Complicate OS operations. Multiple (unequal) page sizes provide the flexibility needed to effectively use a TLB

Example: Large pages can be used for program instructions.
Small pages can be used for threads

Most operating system support only one page size. Smaller page size, less amount of internal fragmentation. Smaller page size, more pages required per process. More pages per process means larger page tables. Larger page tables means large portion of page tables in virtual memory.

Secondary memory is designed to efficiently transfer large blocks of data so a large page size is better. Small page size, large number of pages will be found in main memory As time goes on during execution, the pages in memory will all contain portions of the process near recent references. Page faults low. Increased page size causes pages to contain locations further from any recent reference. Page faults rise.

Page Size selection must take into consideration.

Home